package com.itheima.appserver.controller;

import com.itheima.appserver.service.HuanxinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author yaohu
 * @date 2021/12/11
 * @Version 1.0
 * @describe
 */
@RestController
@RequestMapping("/huanxin")
public class HuanxinController {

    @Autowired
    private HuanxinService huanxinService;

    @GetMapping("/user")
    public ResponseEntity queryHuanXinUser() {
        Map<String, String> huanXinUser = huanxinService.queryHuanXinUser();
        return ResponseEntity.ok(huanXinUser);
    }
}
